﻿#ifndef DEVUPFORM_H
#define DEVUPFORM_H

/*
* @author   Puuck
* @date     2020-10-28
*/

#include <QWidget>
#include <QPointer>

#include "AiPtuStruct.h"

namespace Ui
{
    class DevUpForm;
}

class DevUpForm : public QWidget
{
    Q_OBJECT

public:
    explicit DevUpForm(QWidget* parent = nullptr);
    ~DevUpForm();

    void onAppUpgrade(QJsonObject);

private slots:
    void on_pushButton_proChoose_clicked();

    void on_pushButton_proUp_clicked();

    void on_pushButton_start_clicked();

    void on_pushButton_export_clicked();

    void on_pushButton_upload_clicked();

private:
    QString getMd5(const QString& filename) const;

    void init();

private:
    Ui::DevUpForm* ui;

signals:
    void sigProInfo(AppUpgrade appUpgrade);
};

#endif    // DEVUPFORM_H
